import request from '@/config/axios'

//查看操作日志数据
export const getCaoZuoRiZhi = (data: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selOperationLog', data })
}
//删除操作日志数据
export const delectForum = (params: any) => {
  return request.post({ url: '/api/personnel/delOperationLog', params})
}
//查看后台管理员登录日志数据
export const getHouTaiGuanLiYuanDengLuRiZhi = (data: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selBackstageLoginLog', data })
}
//删除后台管理员登录日志数据
export const delectHouTaiGuanLiYuanDengLuRiZhi = (params: any) => {
  return request.post({ url: '/api/personnel/delReceptionLoginLog', params})
}
//查看前台用户登录日志数据
export const getQianTaiYongHuDengLuRiZhi = (data: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selReceptionLoginLog', data })
}
//删除前台用户登录日志数据
export const delectQianTaiYongHuDengLuRiZhi = (params: any) => {
  return request.post({ url: '/api/personnel/delReceptionLoginLog', params})
}
//查看封号日志数据
export const getFengHaoRiZhi = (data: any): Promise<IResponse> => {
  return request.post({ url: '/api/personnel/selClosureLog', data })
}
//删除封号日志数据
export const delectFengHaoRiZhi = (params: any) => {
  return request.post({ url: '/api/personnel/delClosureLog', params})
}
//查看反馈button按钮数据
export const getFanKui = () => {
  return request.get({ url: '/api/personnel/selAduFeedNum' })
}
// 反馈待受理数据
export const fanKui = (params: any) => {
  return request.post({ url: '/api/personnel/selFeedbackList', params})
}
// 反馈待受理数据
export const chaunzhi = (feedbackStatus: number,feedbackId:number) => {
  return request.post({ url: '/api/personnel/updFeedback', params:{feedbackStatus,feedbackId}})
}
